package com.zis.starter.core;

import java.io.Serializable;
import java.util.Map;

/**
 * 通用分页参数
 * Create by wangshen 2018/1/22
 */
public class SearchParams implements Serializable {

    /**
     * 页数
     */
    private int page;

    /**
     * 页大小
     */
    private int pageSize;

    /**
     * 排序方式
     */
    private String sort;

    /**
     * 排序字段
     */
    private String order;

    /**
     * 查询参数
     */
    private Map params;

    /**
     * @return the page
     */
    public int getPage() {
        return page;
    }

    /**
     * @param page the page to set
     */
    public void setPage(int page) {
        this.page = page;
    }

    /**
     * @return the pageSize
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * @param pageSize the pageSize to set
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * @return the sort
     */
    public String getSort() {
        return sort;
    }

    /**
     * @param sort the sort to set
     */
    public void setSort(String sort) {
        this.sort = sort;
    }

    /**
     * @return the order
     */
    public String getOrder() {
        return order;
    }

    /**
     * @param order the order to set
     */
    public void setOrder(String order) {
        this.order = order;
    }

    /**
     * @return the params
     */
    public Map getParams() {
        return params;
    }

    /**
     * @param params the params to set
     */
    public void setParams(Map params) {
        this.params = params;
    }
}
